import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('t_case')
export class TCase {
    @PrimaryGeneratedColumn()
    id: number

    @Column({
        type: 'varchar',
        comment: "封面图片"
    })
    img: string

    @Column({
        type: 'varchar',
        comment: "logo"
    })
    logo:string
 
    @Column({
        type: 'varchar',
        comment: "产品名称"
    })
    title: string

    @Column({
        type: 'varchar',
        comment: "子标题"
    })
    subtitle: string

    @Column({
        type: 'varchar',
        comment: "公司描述"
    })
    description: string


    @Column({
        type: 'longtext',
        comment: "内容简述"
    })
    introduce: string

    @Column({
        type: 'varchar',
        comment: "其他产品",
        default: null,
    })
    otherproduct: string

   
    @Column({
        type: 'varchar',
        default: 'admin',
        comment: "更新人"
    })
    updateUser: string
    @Column({
        type: "boolean",
        comment: "是否上推荐",
        default: false,
    })
    isRecommendation:boolean
    @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP', comment: '更新时间' })
    createTime: Date

}
